package Interfaces;

import java.awt.BorderLayout;
import javax.swing.JFrame;
import javax.swing.JPanel;
import org.jvnet.substance.SubstanceLookAndFeel;

public class Principal extends javax.swing.JFrame {

    public Principal() {
        
        JFrame.setDefaultLookAndFeelDecorated(true);
        SubstanceLookAndFeel.setSkin("org.jvnet.substance.skin.OfficeSilver2007Skin");
        super.setTitle("Principal");
        //super.setLocation(265, 80);
        initComponents();
        super.setLocationRelativeTo(null);
        setPanelDefault();
    
        //Se carga el panel de acceso al sistema
        Login login = new Login(this,true);
        //login.setDefaultCloseOperation(0);
        
       
        
        login.setVisible(true);
    }
    
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jTabbedPane1 = new javax.swing.JTabbedPane();
        jPanel6 = new javax.swing.JPanel();
        jPanel2 = new javax.swing.JPanel();
        btnAgreProduc = new javax.swing.JButton();
        btnElimProduc = new javax.swing.JButton();
        btnActuProduc = new javax.swing.JButton();
        btnConsProduc = new javax.swing.JButton();
        AreaTrabScrollProduc = new javax.swing.JScrollPane();
        jPanel3 = new javax.swing.JPanel();
        btnAgreMasc = new javax.swing.JButton();
        btnElimMasc = new javax.swing.JButton();
        btnActuMasc = new javax.swing.JButton();
        btnConsMasc = new javax.swing.JButton();
        AreaTrabScrollMasc = new javax.swing.JScrollPane();
        jPanel4 = new javax.swing.JPanel();
        btnAgreEst = new javax.swing.JButton();
        btnElimEst = new javax.swing.JButton();
        btnActuEst = new javax.swing.JButton();
        btnConsEst = new javax.swing.JButton();
        AreaTrabScrollEst = new javax.swing.JScrollPane();
        jPanel5 = new javax.swing.JPanel();
        btnAgreArea = new javax.swing.JButton();
        btnElimArea = new javax.swing.JButton();
        btnActuArea = new javax.swing.JButton();
        btnConsArea = new javax.swing.JButton();
        AreaTrabScrollArea = new javax.swing.JScrollPane();
        jPanel1 = new javax.swing.JPanel();
        btnAgregarProv = new javax.swing.JButton();
        btnElimProv = new javax.swing.JButton();
        btnActProv = new javax.swing.JButton();
        btnConsProv = new javax.swing.JButton();
        AreaTrabScrollProv = new javax.swing.JScrollPane();
        jPanel7 = new javax.swing.JPanel();
        jPanel8 = new javax.swing.JPanel();
        btnAgreUsua = new javax.swing.JButton();
        btnElimUsua = new javax.swing.JButton();
        btnActuUsua = new javax.swing.JButton();
        btnConsUsua = new javax.swing.JButton();
        AreaTrabScrollUsua = new javax.swing.JScrollPane();
        btnAyuda = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        setMaximumSize(new java.awt.Dimension(800, 600));
        setMinimumSize(new java.awt.Dimension(800, 600));
        setResizable(false);

        jTabbedPane1.setBackground(new java.awt.Color(255, 255, 255));

        jPanel6.setMaximumSize(new java.awt.Dimension(755, 451));
        jPanel6.setMinimumSize(new java.awt.Dimension(755, 451));
        jPanel6.setPreferredSize(new java.awt.Dimension(755, 451));

        javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
        jPanel6.setLayout(jPanel6Layout);
        jPanel6Layout.setHorizontalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 775, Short.MAX_VALUE)
        );
        jPanel6Layout.setVerticalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 530, Short.MAX_VALUE)
        );

        jTabbedPane1.addTab("Facturación", jPanel6);

        btnAgreProduc.setText("Agregar Producto");
        btnAgreProduc.setMaximumSize(new java.awt.Dimension(135, 23));
        btnAgreProduc.setMinimumSize(new java.awt.Dimension(135, 23));
        btnAgreProduc.setPreferredSize(new java.awt.Dimension(135, 23));

        btnElimProduc.setText("Eliminar Producto");
        btnElimProduc.setMaximumSize(new java.awt.Dimension(135, 23));
        btnElimProduc.setMinimumSize(new java.awt.Dimension(135, 23));
        btnElimProduc.setPreferredSize(new java.awt.Dimension(135, 23));

        btnActuProduc.setText("Actualizar Producto");
        btnActuProduc.setMaximumSize(new java.awt.Dimension(135, 23));
        btnActuProduc.setMinimumSize(new java.awt.Dimension(135, 23));
        btnActuProduc.setPreferredSize(new java.awt.Dimension(135, 23));

        btnConsProduc.setText("Consultar Producto");
        btnConsProduc.setMaximumSize(new java.awt.Dimension(135, 23));
        btnConsProduc.setMinimumSize(new java.awt.Dimension(135, 23));
        btnConsProduc.setPreferredSize(new java.awt.Dimension(135, 23));

        AreaTrabScrollProduc.setBackground(new java.awt.Color(255, 255, 255));
        AreaTrabScrollProduc.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 153, 51)));
        AreaTrabScrollProduc.setMaximumSize(new java.awt.Dimension(755, 451));
        AreaTrabScrollProduc.setMinimumSize(new java.awt.Dimension(755, 451));
        AreaTrabScrollProduc.setPreferredSize(new java.awt.Dimension(755, 451));

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(AreaTrabScrollProduc, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addComponent(btnAgreProduc, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnElimProduc, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnActuProduc, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnConsProduc, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(btnAgreProduc, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(btnElimProduc, javax.swing.GroupLayout.DEFAULT_SIZE, 51, Short.MAX_VALUE)
                    .addComponent(btnActuProduc, javax.swing.GroupLayout.DEFAULT_SIZE, 51, Short.MAX_VALUE)
                    .addComponent(btnConsProduc, javax.swing.GroupLayout.DEFAULT_SIZE, 51, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(AreaTrabScrollProduc, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );

        jTabbedPane1.addTab("Productos", jPanel2);

        btnAgreMasc.setText("Agregar Mascota");
        btnAgreMasc.setMaximumSize(new java.awt.Dimension(135, 23));
        btnAgreMasc.setMinimumSize(new java.awt.Dimension(135, 23));
        btnAgreMasc.setPreferredSize(new java.awt.Dimension(135, 23));
        btnAgreMasc.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAgreMascActionPerformed(evt);
            }
        });

        btnElimMasc.setText("Eliminar Mascota");
        btnElimMasc.setMaximumSize(new java.awt.Dimension(135, 23));
        btnElimMasc.setMinimumSize(new java.awt.Dimension(135, 23));
        btnElimMasc.setPreferredSize(new java.awt.Dimension(135, 23));

        btnActuMasc.setText("Actualizar Mascota");
        btnActuMasc.setMaximumSize(new java.awt.Dimension(135, 23));
        btnActuMasc.setMinimumSize(new java.awt.Dimension(135, 23));
        btnActuMasc.setPreferredSize(new java.awt.Dimension(135, 23));

        btnConsMasc.setText("Consultar Mascota");
        btnConsMasc.setMaximumSize(new java.awt.Dimension(135, 23));
        btnConsMasc.setMinimumSize(new java.awt.Dimension(135, 23));
        btnConsMasc.setPreferredSize(new java.awt.Dimension(135, 23));

        AreaTrabScrollMasc.setBackground(new java.awt.Color(255, 255, 255));
        AreaTrabScrollMasc.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 153, 51)));
        AreaTrabScrollMasc.setMaximumSize(new java.awt.Dimension(755, 451));
        AreaTrabScrollMasc.setMinimumSize(new java.awt.Dimension(755, 451));
        AreaTrabScrollMasc.setPreferredSize(new java.awt.Dimension(755, 451));

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(AreaTrabScrollMasc, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addComponent(btnAgreMasc, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnElimMasc, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnActuMasc, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnConsMasc, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(btnAgreMasc, javax.swing.GroupLayout.DEFAULT_SIZE, 51, Short.MAX_VALUE)
                    .addComponent(btnElimMasc, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(btnActuMasc, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(btnConsMasc, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(AreaTrabScrollMasc, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );

        jTabbedPane1.addTab("Mascotas", jPanel3);

        btnAgreEst.setText("Agregar Estante");
        btnAgreEst.setMaximumSize(new java.awt.Dimension(135, 23));
        btnAgreEst.setMinimumSize(new java.awt.Dimension(135, 23));
        btnAgreEst.setPreferredSize(new java.awt.Dimension(135, 23));
        btnAgreEst.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAgreEstActionPerformed(evt);
            }
        });

        btnElimEst.setText("Eliminar Estante");
        btnElimEst.setMaximumSize(new java.awt.Dimension(135, 23));
        btnElimEst.setMinimumSize(new java.awt.Dimension(135, 23));
        btnElimEst.setPreferredSize(new java.awt.Dimension(135, 23));
        btnElimEst.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnElimEstActionPerformed(evt);
            }
        });

        btnActuEst.setText("Actualizar Estante");
        btnActuEst.setMaximumSize(new java.awt.Dimension(135, 23));
        btnActuEst.setMinimumSize(new java.awt.Dimension(135, 23));
        btnActuEst.setPreferredSize(new java.awt.Dimension(135, 23));
        btnActuEst.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnActuEstActionPerformed(evt);
            }
        });

        btnConsEst.setText("Consultar Estante");
        btnConsEst.setMaximumSize(new java.awt.Dimension(135, 23));
        btnConsEst.setMinimumSize(new java.awt.Dimension(135, 23));
        btnConsEst.setPreferredSize(new java.awt.Dimension(135, 23));
        btnConsEst.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnConsEstActionPerformed(evt);
            }
        });

        AreaTrabScrollEst.setBackground(new java.awt.Color(255, 255, 255));
        AreaTrabScrollEst.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 153, 51)));
        AreaTrabScrollEst.setMaximumSize(new java.awt.Dimension(755, 451));
        AreaTrabScrollEst.setMinimumSize(new java.awt.Dimension(755, 451));
        AreaTrabScrollEst.setPreferredSize(new java.awt.Dimension(755, 451));

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(AreaTrabScrollEst, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addComponent(btnAgreEst, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnElimEst, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnActuEst, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnConsEst, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(btnAgreEst, javax.swing.GroupLayout.DEFAULT_SIZE, 51, Short.MAX_VALUE)
                    .addComponent(btnElimEst, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(btnActuEst, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(btnConsEst, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(AreaTrabScrollEst, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );

        jTabbedPane1.addTab("Estantes", jPanel4);

        btnAgreArea.setText("Agregar Área");
        btnAgreArea.setMaximumSize(new java.awt.Dimension(135, 23));
        btnAgreArea.setMinimumSize(new java.awt.Dimension(135, 23));
        btnAgreArea.setPreferredSize(new java.awt.Dimension(135, 23));
        btnAgreArea.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAgreAreaActionPerformed(evt);
            }
        });

        btnElimArea.setText("Eliminar Área");
        btnElimArea.setMaximumSize(new java.awt.Dimension(135, 23));
        btnElimArea.setMinimumSize(new java.awt.Dimension(135, 23));
        btnElimArea.setPreferredSize(new java.awt.Dimension(135, 23));
        btnElimArea.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnElimAreaActionPerformed(evt);
            }
        });

        btnActuArea.setText("Modificar Área");
        btnActuArea.setMaximumSize(new java.awt.Dimension(135, 23));
        btnActuArea.setMinimumSize(new java.awt.Dimension(135, 23));
        btnActuArea.setPreferredSize(new java.awt.Dimension(135, 23));
        btnActuArea.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnActuAreaActionPerformed(evt);
            }
        });

        btnConsArea.setText("Consultar Área");
        btnConsArea.setMaximumSize(new java.awt.Dimension(135, 23));
        btnConsArea.setMinimumSize(new java.awt.Dimension(135, 23));
        btnConsArea.setPreferredSize(new java.awt.Dimension(135, 23));
        btnConsArea.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnConsAreaActionPerformed(evt);
            }
        });

        AreaTrabScrollArea.setBackground(new java.awt.Color(255, 255, 255));
        AreaTrabScrollArea.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 153, 51)));
        AreaTrabScrollArea.setMaximumSize(new java.awt.Dimension(755, 451));
        AreaTrabScrollArea.setMinimumSize(new java.awt.Dimension(755, 451));
        AreaTrabScrollArea.setPreferredSize(new java.awt.Dimension(755, 451));

        javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
        jPanel5.setLayout(jPanel5Layout);
        jPanel5Layout.setHorizontalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(AreaTrabScrollArea, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addComponent(btnAgreArea, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnElimArea, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnActuArea, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnConsArea, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jPanel5Layout.setVerticalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(btnAgreArea, javax.swing.GroupLayout.DEFAULT_SIZE, 51, Short.MAX_VALUE)
                    .addComponent(btnElimArea, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(btnActuArea, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(btnConsArea, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(AreaTrabScrollArea, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );

        jTabbedPane1.addTab("Áreas", jPanel5);

        btnAgregarProv.setText("Agregar Proveedor");
        btnAgregarProv.setMaximumSize(new java.awt.Dimension(135, 23));
        btnAgregarProv.setMinimumSize(new java.awt.Dimension(135, 23));
        btnAgregarProv.setPreferredSize(new java.awt.Dimension(135, 23));
        btnAgregarProv.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAgregarProvActionPerformed(evt);
            }
        });

        btnElimProv.setText("Eliminar Proveedor");
        btnElimProv.setMaximumSize(new java.awt.Dimension(135, 23));
        btnElimProv.setMinimumSize(new java.awt.Dimension(135, 23));
        btnElimProv.setPreferredSize(new java.awt.Dimension(135, 23));
        btnElimProv.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnElimProvActionPerformed(evt);
            }
        });

        btnActProv.setText("Actualizar Proveedor");
        btnActProv.setMaximumSize(new java.awt.Dimension(135, 23));
        btnActProv.setMinimumSize(new java.awt.Dimension(135, 23));
        btnActProv.setPreferredSize(new java.awt.Dimension(135, 23));
        btnActProv.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnActProvActionPerformed(evt);
            }
        });

        btnConsProv.setText("Consultar Proveedor");
        btnConsProv.setMaximumSize(new java.awt.Dimension(135, 23));
        btnConsProv.setMinimumSize(new java.awt.Dimension(135, 23));
        btnConsProv.setPreferredSize(new java.awt.Dimension(135, 23));
        btnConsProv.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnConsProvActionPerformed(evt);
            }
        });

        AreaTrabScrollProv.setBackground(new java.awt.Color(255, 255, 255));
        AreaTrabScrollProv.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(255, 153, 51), 1, true));
        AreaTrabScrollProv.setMaximumSize(new java.awt.Dimension(755, 451));
        AreaTrabScrollProv.setMinimumSize(new java.awt.Dimension(755, 451));
        AreaTrabScrollProv.setPreferredSize(new java.awt.Dimension(755, 451));

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(AreaTrabScrollProv, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(btnAgregarProv, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnElimProv, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnActProv, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnConsProv, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(btnConsProv, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)
                    .addComponent(btnActProv, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(btnElimProv, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(btnAgregarProv, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(AreaTrabScrollProv, javax.swing.GroupLayout.DEFAULT_SIZE, 452, Short.MAX_VALUE)
                .addContainerGap())
        );

        jTabbedPane1.addTab("Proveedores", jPanel1);

        javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);
        jPanel7.setLayout(jPanel7Layout);
        jPanel7Layout.setHorizontalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 775, Short.MAX_VALUE)
        );
        jPanel7Layout.setVerticalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 530, Short.MAX_VALUE)
        );

        jTabbedPane1.addTab("Reportes", jPanel7);

        btnAgreUsua.setText("Agregar Usuario");
        btnAgreUsua.setMaximumSize(new java.awt.Dimension(135, 23));
        btnAgreUsua.setMinimumSize(new java.awt.Dimension(135, 23));
        btnAgreUsua.setPreferredSize(new java.awt.Dimension(135, 23));
        btnAgreUsua.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAgreUsuaActionPerformed(evt);
            }
        });

        btnElimUsua.setText("Eliminar Usuario");
        btnElimUsua.setMaximumSize(new java.awt.Dimension(135, 23));
        btnElimUsua.setMinimumSize(new java.awt.Dimension(135, 23));
        btnElimUsua.setPreferredSize(new java.awt.Dimension(135, 23));
        btnElimUsua.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnElimUsuaActionPerformed(evt);
            }
        });

        btnActuUsua.setText("Actualizar Usuario");
        btnActuUsua.setMaximumSize(new java.awt.Dimension(135, 23));
        btnActuUsua.setMinimumSize(new java.awt.Dimension(135, 23));
        btnActuUsua.setPreferredSize(new java.awt.Dimension(135, 23));
        btnActuUsua.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnActuUsuaActionPerformed(evt);
            }
        });

        btnConsUsua.setText("Consultar Usuario");
        btnConsUsua.setMaximumSize(new java.awt.Dimension(135, 23));
        btnConsUsua.setMinimumSize(new java.awt.Dimension(135, 23));
        btnConsUsua.setPreferredSize(new java.awt.Dimension(135, 23));
        btnConsUsua.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnConsUsuaActionPerformed(evt);
            }
        });

        AreaTrabScrollUsua.setBackground(new java.awt.Color(255, 255, 255));
        AreaTrabScrollUsua.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 153, 51)));
        AreaTrabScrollUsua.setMaximumSize(new java.awt.Dimension(755, 451));
        AreaTrabScrollUsua.setMinimumSize(new java.awt.Dimension(755, 451));
        AreaTrabScrollUsua.setPreferredSize(new java.awt.Dimension(755, 451));

        javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);
        jPanel8.setLayout(jPanel8Layout);
        jPanel8Layout.setHorizontalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(AreaTrabScrollUsua, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(jPanel8Layout.createSequentialGroup()
                        .addComponent(btnAgreUsua, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnElimUsua, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnActuUsua, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnConsUsua, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jPanel8Layout.setVerticalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(btnAgreUsua, javax.swing.GroupLayout.DEFAULT_SIZE, 51, Short.MAX_VALUE)
                    .addComponent(btnElimUsua, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(btnActuUsua, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(btnConsUsua, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(AreaTrabScrollUsua, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );

        jTabbedPane1.addTab("Seguridad", jPanel8);

        btnAyuda.setMargin(new java.awt.Insets(2, 2, 2, 2));
        btnAyuda.setMaximumSize(new java.awt.Dimension(25, 25));
        btnAyuda.setMinimumSize(new java.awt.Dimension(25, 25));
        btnAyuda.setPreferredSize(new java.awt.Dimension(25, 25));
        btnAyuda.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAyudaActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jTabbedPane1, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addGap(0, 0, Short.MAX_VALUE)
                        .addComponent(btnAyuda, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(btnAyuda, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jTabbedPane1))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void btnAgregarProvActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAgregarProvActionPerformed
        // TODO add your handling code here:
        JPanel border = new JPanel();  
        AgregarProveedor agreProv = new AgregarProveedor();
        AreaTrabScrollProv.setViewportView(border);
        border.add(agreProv, BorderLayout.CENTER);
               
    }//GEN-LAST:event_btnAgregarProvActionPerformed

    private void btnElimProvActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnElimProvActionPerformed
        // TODO add your handling code here:
        JPanel eliminar = new JPanel();
        EliminarProveedor elimProv = new EliminarProveedor();
        AreaTrabScrollProv.setViewportView(eliminar);
        eliminar.add(elimProv, BorderLayout.CENTER);
    }//GEN-LAST:event_btnElimProvActionPerformed

    private void btnConsProvActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnConsProvActionPerformed
        // TODO add your handling code here:
        JPanel consultar = new JPanel();
        ConsultarProveedor conProv = new ConsultarProveedor();
        AreaTrabScrollProv.setViewportView(consultar);
        consultar.add(conProv, BorderLayout.CENTER);
    }//GEN-LAST:event_btnConsProvActionPerformed

    private void btnActProvActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnActProvActionPerformed
        // TODO add your handling code here:
        JPanel modificar = new JPanel();
        ModificarProveedor modProv = new ModificarProveedor();
        AreaTrabScrollProv.setViewportView(modificar);
        modificar.add(modProv, BorderLayout.CENTER);
    }//GEN-LAST:event_btnActProvActionPerformed

    private void btnAgreEstActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAgreEstActionPerformed
        // TODO add your handling code here:
        JPanel AgregarEstan = new JPanel();  
        AgregarEstante agreEstan = new AgregarEstante();
        AreaTrabScrollEst.setViewportView(AgregarEstan);
        AgregarEstan.add(agreEstan, BorderLayout.CENTER);
    }//GEN-LAST:event_btnAgreEstActionPerformed

    private void btnElimEstActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnElimEstActionPerformed
        // TODO add your handling code here:
        JPanel Eliminar = new JPanel();  
        EliminarEstante eliminarEstan = new EliminarEstante();
        AreaTrabScrollEst.setViewportView(Eliminar);
        Eliminar.add(eliminarEstan, BorderLayout.CENTER);
    }//GEN-LAST:event_btnElimEstActionPerformed

    private void btnActuEstActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnActuEstActionPerformed
        // TODO add your handling code here:
        JPanel Modificar = new JPanel();  
        ModificarEstante ModificarEstan = new ModificarEstante();
        AreaTrabScrollEst.setViewportView(Modificar);
        Modificar.add(ModificarEstan, BorderLayout.CENTER);
    }//GEN-LAST:event_btnActuEstActionPerformed

    private void btnConsEstActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnConsEstActionPerformed
        // TODO add your handling code here:
        JPanel Consultar = new JPanel();  
        ConsultarEstante consultarEstan = new ConsultarEstante();
        AreaTrabScrollEst.setViewportView(Consultar);
        Consultar.add(consultarEstan, BorderLayout.CENTER);
    }//GEN-LAST:event_btnConsEstActionPerformed


    private void btnElimAreaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnElimAreaActionPerformed
JPanel Eliminar = new JPanel();
        EliminarArea EliminarArea = new EliminarArea();
        AreaTrabScrollArea.setViewportView(Eliminar);
        Eliminar.add(EliminarArea, BorderLayout.CENTER);        // TODO add your handling code here:
    }//GEN-LAST:event_btnElimAreaActionPerformed

    private void btnAgreUsuaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAgreUsuaActionPerformed
        // TODO add your handling code here:
        JPanel border = new JPanel();  
        AgregarUsuario agreUsu = new AgregarUsuario();
        AreaTrabScrollUsua.setViewportView(border);
        border.add(agreUsu, BorderLayout.CENTER);
    }//GEN-LAST:event_btnAgreUsuaActionPerformed

    private void btnElimUsuaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnElimUsuaActionPerformed
        // TODO add your handling code here:
        JPanel eliminar = new JPanel();
        EliminarUsuario elimUsuario = new EliminarUsuario();
        AreaTrabScrollUsua.setViewportView(eliminar);
        eliminar.add(elimUsuario, BorderLayout.CENTER);
        
    }//GEN-LAST:event_btnElimUsuaActionPerformed

    private void btnActuUsuaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnActuUsuaActionPerformed
        // TODO add your handling code here:
        JPanel modificar = new JPanel();
        ModificarUsuario modifUsuario = new ModificarUsuario();
        AreaTrabScrollUsua.setViewportView(modificar);
        modificar.add(modifUsuario, BorderLayout.CENTER); 
    }//GEN-LAST:event_btnActuUsuaActionPerformed

    private void btnConsUsuaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnConsUsuaActionPerformed
        // TODO add your handling code here:
        JPanel consultar = new JPanel();
        ConsultarUsuario ConsultarUsuario = new ConsultarUsuario();
        AreaTrabScrollUsua.setViewportView(consultar);
        consultar.add(ConsultarUsuario, BorderLayout.CENTER); 
    }//GEN-LAST:event_btnConsUsuaActionPerformed

    private void btnAgreAreaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAgreAreaActionPerformed
    JPanel agregar = new JPanel();
        AgregarArea AgregarArea = new AgregarArea();
        AreaTrabScrollArea.setViewportView(agregar);
        agregar.add(AgregarArea, BorderLayout.CENTER); 
        
        // TODO add your handling code here:
    }//GEN-LAST:event_btnAgreAreaActionPerformed

    private void btnAgreMascActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAgreMascActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_btnAgreMascActionPerformed

    private void btnActuAreaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnActuAreaActionPerformed
     JPanel Modificar = new JPanel();
        ModificarArea ModificarArea = new ModificarArea();
        AreaTrabScrollArea.setViewportView(Modificar);
        Modificar.add(ModificarArea, BorderLayout.CENTER);
    }//GEN-LAST:event_btnActuAreaActionPerformed

    private void btnConsAreaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnConsAreaActionPerformed
     JPanel consultar = new JPanel();
        ConsultarArea ConsultarArea = new ConsultarArea();
        AreaTrabScrollArea.setViewportView(consultar);
        consultar.add(ConsultarArea, BorderLayout.CENTER);
    }//GEN-LAST:event_btnConsAreaActionPerformed

    private void btnAyudaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAyudaActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_btnAyudaActionPerformed
 
    
    private void setPanelDefault(){
        
        
        JPanel tem = new JPanel();
        JPanel tem2 = new JPanel();
        
        Construccion def = new Construccion();
        Construccion def2 = new Construccion();        
        
        AreaTrabScrollMasc.setViewportView(tem);
        tem.add(def);
        AreaTrabScrollProduc.setViewportView(tem2);
        tem2.add(def2);        
    }
    
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(Principal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(Principal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(Principal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(Principal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            
                              
            @Override
            public void run() {
                //Se muestra el menu principal
                new Principal().setVisible(true);
                
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JScrollPane AreaTrabScrollArea;
    private javax.swing.JScrollPane AreaTrabScrollEst;
    private javax.swing.JScrollPane AreaTrabScrollMasc;
    private javax.swing.JScrollPane AreaTrabScrollProduc;
    private javax.swing.JScrollPane AreaTrabScrollProv;
    private javax.swing.JScrollPane AreaTrabScrollUsua;
    private javax.swing.JButton btnActProv;
    private javax.swing.JButton btnActuArea;
    private javax.swing.JButton btnActuEst;
    private javax.swing.JButton btnActuMasc;
    private javax.swing.JButton btnActuProduc;
    private javax.swing.JButton btnActuUsua;
    private javax.swing.JButton btnAgreArea;
    private javax.swing.JButton btnAgreEst;
    private javax.swing.JButton btnAgreMasc;
    private javax.swing.JButton btnAgreProduc;
    private javax.swing.JButton btnAgreUsua;
    private javax.swing.JButton btnAgregarProv;
    private javax.swing.JButton btnAyuda;
    private javax.swing.JButton btnConsArea;
    private javax.swing.JButton btnConsEst;
    private javax.swing.JButton btnConsMasc;
    private javax.swing.JButton btnConsProduc;
    private javax.swing.JButton btnConsProv;
    private javax.swing.JButton btnConsUsua;
    private javax.swing.JButton btnElimArea;
    private javax.swing.JButton btnElimEst;
    private javax.swing.JButton btnElimMasc;
    private javax.swing.JButton btnElimProduc;
    private javax.swing.JButton btnElimProv;
    private javax.swing.JButton btnElimUsua;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JPanel jPanel6;
    private javax.swing.JPanel jPanel7;
    private javax.swing.JPanel jPanel8;
    private javax.swing.JTabbedPane jTabbedPane1;
    // End of variables declaration//GEN-END:variables
}
